/**
 * @author JINMO
 * @since 2022/06/30 09:08
 */

package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.MarketIssue;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.param.CommonData;
import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.service.admin.AdminIssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wx/issue")
public class WXIssueController {
    @Autowired
    AdminIssueService adminIssueService;

    /**
     * 通过分页参数查找通用问题并返回
     *
     * @param baseParam 基本参数
     * @return {@link BaseRespVo }
     * @author: jinmo
     * @date: 2022/06/26 18:54:27
     */
    @RequestMapping(value = "list")
    public BaseRespVo list( BaseParam baseParam) {

        CommonData<MarketIssue> data = adminIssueService.queryCommonIssueByBaseParamAndQuestion(null,baseParam);

        return BaseRespVo.ok(data);
    }
}
